<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<%@include file="/common/taglibs.jsp" %>
<%@include file="/common/javascript.jsp" %>
<html>
  <head>
    <base href="<%=basePath%>">
	<style type="text/css">	
		/*提交表单*/
		.l-table-edit {font-size:12px; color:#555; padding:5px 5px 5px 0px;}
		.l-table-edit-td{ padding:5px; padding-left:0;}
	</style>
	<script src="js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#realName").val("");
			$("#fileRemark").val("");
		});
		function saveInfo(){
			$("#mainform").form('submit',{
				success: function(data){  
					var data = eval('(' + data + ')'); 
					if (!data.success){ //保存失败  
						$.messager.alert('提示',"错误"+data.message,"info");
        			}else{//保存成功
        				$.messager.alert('提示',data.message,"info",function(){
        						//调用父窗体的方法，关闭弹出框，并刷新网格
        						window.parent.closeContent();
        				});
        			} 
				}
				
			});
		}
	</script>
  </head>
  
  <body>
	<form name="mainform" method="post" enctype="multipart/form-data" id="mainform" action="landAction_saveAtta">
    	<table cellpadding="0" cellspacing="0" class="l-table-edit" style="width: 95%; margin-top:10px; margin-left:15px; column-gap:8px">
        	<tr>
            	<td align="right" class="l-table-edit-td">名称:</td>
                <td align="left" class="l-table-edit-td" >
                	<input type="text" name="realName" id="realName"  >
                </td>
                <td align="right" class="l-table-edit-td">文件:</td>
                <td align="left" class="l-table-edit-td" >
                	<input type="file" name="file" id="file"  >
                </td>
            </tr>
            
            <tr>
            	<td align="right" class="l-table-edit-td">备注:</td>
                <td align="left" class="l-table-edit-td" colspan="3">
                	<textarea name="fileRemark" id="fileRemark" rows="3" style="width: 100%" >${land.remark }</textarea>
                </td>
            </tr>
            
        </table>
    </form>
    
   
</body>
</html>
